/*
 * @Author: limit
 * @Date: 2021-03-26 15:19:01
 * @LastEditTime: 2021-07-19 15:27:03
 * @LastEditors: limit
 * @FilePath: /sim-card-platform/src/api/index.js
 * @Description: 由limit创建！
 */
import request from '@/utils/request'
// 账号密码登陆接口
export function login(data) {
    return request({
        url: 'drug/auth/login',
        method: 'post',
        data
    })
}
// 获取用户详情
export function getUserInfo(query) {
    return request({
        url: 'drug/auth/userInfo',
        method: 'get',
        params: query
    })
}
// 获取当前登录人的资源权限列表
export function getMoveRouter(query) {
    return request({
        url: `/drug/permission/currentTreeByGroup/${query.group}`,
        method: 'get',
        params: query
    })
}
// 根据角色编码查询资源
// export function getMoveRouter(query) {
//   return request({
//     url: `drug/permission/currentTreeByGroupAndRoleCode`,
//     method: 'get',
//     params: query
//   })
// }
// 修改密码
export function updatePwd(data) {
    return request({
        url: `/drug/auth/updatePwd`,
        method: 'put',
        data
    })
}
// uv aoaoe/api/uv
export function getUv() {
    return request({
        url: '/aoaoe/api/uv',
        method: 'get',
    })
}